package com.src;

import java.util.List;

import com.src.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
 

public class TabBtnAdapter extends BaseAdapter {
	private static final String TAG = "TabBtnAdapter";
	private Context mContext;
	private List al;

	private LayoutInflater mInflater;

	public TabBtnAdapter(Context c, List al) {
		mContext = c;
		this.al = al;
		mInflater = LayoutInflater.from(mContext);
	}

	public int getCount() {
		return al.size();
	}

	public Object getItem(int position) {
		return position;
	}

	public long getItemId(int position) {
		return position;
	}

	public View getView(int position, View convertView, ViewGroup parent) {

		convertView = mInflater.inflate(R.layout.tabbar, null);
		return convertView;
	}
}
